package jessmchung.groupon.parsers;

import org.json.JSONException;
import org.json.JSONObject;

import jessmchung.groupon.datatypes.Tag;

public class TagParser extends GrouponTypeParser<Tag> {

	@Override
	public Tag parse(JSONObject json) throws JSONException {
		Tag obj = new Tag();
		if(json.has("name"))
            obj.setName(json.getString("name"));
		
		return obj;
	}

}
